public interface DriverInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
DriverInterface.TestType
This
enum is used to specify which test scenario will be executed. |
| Modifier and Type | Method and Description |
|---|---|
LinkedList<Person<java.lang.Integer>,java.lang.Integer>[] |
createBuckets(int numBuckets)
This method create the buckets that are needed for the
HashTable<Person<Integer>, Integer>. |
HashTable<Person<java.lang.Integer>,java.lang.Integer> |
createHashTable(DriverInterface.TestType testType,
int numPeople)
This method is used to create a
HashTable<Person<Integer>, Integer>
for the specified testType. |
Person<java.lang.Integer>[] |
createPersons(int numPeople)
This method is used to create array with the
specified number of
Person<Integer> instances. |
TestTimes |
runTestCase(DriverInterface.TestType testType,
int numPeople,
int numberOfTimes)
This method is called to run a particular test case on the
HashTable<Person<Integer>, Integer>
the specified number of times. |
Person<java.lang.Integer>[] createPersons(int numPeople)
Person<Integer> instances.numPeople - The number of Person<Integer> instances to create.Vector<Person<Integer>> with the
specified number of Person<Integer> instances.LinkedList<Person<java.lang.Integer>,java.lang.Integer>[] createBuckets(int numBuckets)
HashTable<Person<Integer>, Integer>.numBuckets - The number of buckets needed for the HashTable<Person<Integer>, Integer>.LinkedList<Person<Integer>, Integer$gt; containing the specified number
of LinkedList<Person<Integer>, Integer$gt; instances.HashTable<Person<java.lang.Integer>,java.lang.Integer> createHashTable(DriverInterface.TestType testType, int numPeople)
HashTable<Person<Integer>, Integer>
for the specified testType.testType - The type of test for the created HashTable.
Person<Integer> instances.
Person<Integer> instances.
numPeople - The number of Person<Integer> instances to include in
the returned HashTable.HashTable<Person<Integer>, Integer>
containing the specified number of Person<Integer> instancesTestTimes runTestCase(DriverInterface.TestType testType, int numPeople, int numberOfTimes)
HashTable<Person<Integer>, Integer>
the specified number of times. The run time * and memory usage for each run is saved in the TestTimes class.testType - The test type to be run.numPeople - The number of Person<Integer> instances to include
in the test.numberOfTimes - The type of test case being run. See the enum DriverInterface.TestType.TestTimes class containing the test times and memory usages.